import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'enablePipe'
})
export class EnablePipePipe implements PipeTransform {


  constructor() {
  }

  transform(value: unknown, ...args: unknown[]): unknown {
    return value === '1' ? '是' : '否';
  }

}
